﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master" CodeFile="VerConsumos.aspx.cs" Inherits="Logistica_VerConsumos" %>
<%@ Register Src="../UserControls/Fecha.ascx" TagName="Fecha" TagPrefix="uc1" %>
<asp:Content ID="Content1"  ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="text-align: center; vertical-align: text-top;">
    <asp:ScriptManager id="ScriptManager1" runat="server"></asp:ScriptManager>
<table class="tablaForm" style="text-align:left">
    <tr>
        <td class="tdLogistica" align="right" colspan="4">Consumos de Combustible</td></tr>
    <tr>
        <td class="tdLiteral" colspan="4" style="text-align: center">
            <asp:Label ID="lblAccion" runat="server" CssClass="lblAccion">Acci&oacute;n</asp:Label>&nbsp;</td>
    </tr>
     <tr>
        <td class="tdLiteral" align="right" style="width: 20%">
            Fecha Desde:
            </td>
        <td style="width: 30%" class="tdForm" align="left">
            <uc1:Fecha ID="FechaD" runat="server" />
            </td>
         <td class="tdLiteral" align="right" style="width: 20%">
            Fecha Hasta:
            </td>
        <td style="width: 30%" class="tdForm" align="left">
            <uc1:Fecha ID="FechaH" runat="server" />
            
        </td>
    </tr>
    <tr>
        <td class="tdForm" align="right">
            Patente:&nbsp;</td>
         <td colspan="3" class="tdForm" align="left"><asp:TextBox id="txtCodigo" runat="server" CssClass="cuadrotxt"></asp:TextBox></td>
    </tr>
    <tr>
        <td class="tdBotones" colspan="4">
            <asp:Button id="btnBuscar" onclick="btnBuscar_Click" runat="server" Text="Buscar" Width="75px"></asp:Button>&nbsp;
            <asp:Button id="btnCancelar" onclick="btnCancelar_Click" runat="server" Text="Cancelar" Width="75px"></asp:Button>
            </td>
    </tr>
    <tr>
        <td style="WIDTH: 550px" class="tdForm" colspan="4">
            <asp:GridView id="gvCombustible" runat="server" BorderWidth="1px" BackColor="White" Width="100%" 
                OnPageIndexChanging="gvCombustible_PageIndexChanging" 
                CellPadding="3" AllowPaging="True" AutoGenerateColumns="False" 
                BorderColor="#999999" BorderStyle="None" GridLines="Vertical" 
                EmptyDataText="No hay datos a mostrar">
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black"></FooterStyle>
                <columns>
                    <asp:TemplateField HeaderText="Patente">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="Patente" runat="server" Text='<%# Bind("Patente") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                     <asp:TemplateField HeaderText="Item">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="Item" runat="server" Text='<%# Bind("Item") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                    <asp:TemplateField HeaderText="Fecha Carga">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="FechaCarga" runat="server" Text='<%# Bind("FechaCarga", "{0:dd/MM/yyyy}") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                    <asp:TemplateField HeaderText="Litros">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="Litros" runat="server" Text='<%# Bind("Litros", "{0:F2}") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                </columns>
                <RowStyle BackColor="#EEEEEE" ForeColor="Black" HorizontalAlign="Center"></RowStyle>
                <EditRowStyle Wrap="True"></EditRowStyle>
                <SelectedRowStyle BackColor="#008A8C" ForeColor="White" Font-Bold="True"></SelectedRowStyle>
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center"></PagerStyle>
                <HeaderStyle BackColor="#325FB9" ForeColor="White" Font-Names="Arial Rounded MT Bold" Font-Bold="True"></HeaderStyle>
                <AlternatingRowStyle BackColor="Gainsboro"></AlternatingRowStyle>
            </asp:GridView>
            </td>
            </tr>
             <tr>
            <td colspan="2" class="tdTit" style="width: 50%; text-align: right;">
               Total Litros:</td>
            <td colspan="2" class="tdLiteral" style="width: 50%; text-align: left;">
                &nbsp;<asp:TextBox ID="txtTotal" runat="server" Font-Bold="True" ReadOnly="True"
                    Width="120px"></asp:TextBox></td>
        </tr>
        </table><br /><br />
    </div>
</asp:Content>
